package com.xb.system.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "payment")
public class PaymentConfig {
    
    private WechatPay wechatPay = new WechatPay();
    private Alipay alipay = new Alipay();
    
    @Data
    public static class WechatPay {
        private String appId;
        private String mchId;
        private String mchKey;
        private String notifyUrl;
    }
    
    @Data
    public static class Alipay {
        private String appId;
        private String privateKey;
        private String publicKey;
        private String alipayPublicKey;
        private String notifyUrl;
        private String returnUrl;
        private boolean sandbox = false;
    }
} 